<?php
/**
 * CreateUser: zlh
 * CreateTime: 2022/2/19 14:30
 * Remark:
 */

namespace App\Http\Requests\Contract;

use App\Http\Requests\BaseRequests;

class AddContractTempPost extends BaseRequests
{

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'contract_template_name' => "required",
            'contract_type_id' => "required",
            'template_file_info' => "required",
        ];
    }

    public function messages()
    {
        return [
            'contract_template_name.required' => "合同模板名称不能为空",
            'contract_type_id.required' => "合同模板类型不能为空",
            'template_file_info.required' => "合同模板文件不能为空",
        ];
    }
}